package com.feihong.txgw.tx_model;

import com.feihong.txgw.inter.contract.mendian.IMenDainContract;
import com.feihong.txgw.model.bean.nearby.NearbyModel;
import com.feihong.txgw.utils.helper.RxHelper;
import com.feihong.txgw.utils.manage.RetrofitManager;
import java.util.Map;

import io.reactivex.Observable;

/**
 * @Author wangziheng
 * @ProjectName txgw_app
 * @ClassName MenDianMainModel
 * @package com.feihong.txgw.tx_model
 * @data 2018/5/4 19:46
 * @Describe
 * @Change
 */
public class MenDianMainModel implements IMenDainContract.IMenDianMainModel {
    @Override
    public Observable<NearbyModel> getLoadMenDianInfo(String url, Map<String, String> mParams) {
        return RetrofitManager.getInstance().getMenDianInfo(url,mParams).compose(RxHelper.<NearbyModel>rxSchedulerHelper());
    }

    public static MenDianMainModel create(){
        return new MenDianMainModel();
    }
}
